package com.bbzn.device.client.dataobject;

import com.bbzn.device.client.vo.req.MongoBaseInfo;
import com.bbzn.device.client.aspect.JSONDateSerial;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Getter
@Setter
@ToString
@NoArgsConstructor
@Document(collection = "tbl_locus_coordinate")
public class LocusCoordinate extends MongoBaseInfo implements Serializable {
    private static final long serialVersionUID = -2179276036195131379L;

    /**
    * 卡号
    */

    private String imei;

    /**
    * 经度
    */
    private String lon;

    /**
    * 纬度
    */
    private String lat;

    /**
    * 速度
    */
    private String speed;

    /**
    * 精确度
    */
    private String accuracy;

    /**
    * 轴承
    */
    private String bearing;

    /**
    * 省市区
    */
    private String address;

    /**
    * 创建时间
    */
    @JsonSerialize(using= JSONDateSerial.class)
    private Long createTime;

    /**
    * 更新时间
    */
    @JsonSerialize(using= JSONDateSerial.class)
    private Long updateTime;

    /**
    * 创建人
    */
    private String createdBy;

    /**
    * 修改人
    */
    private String updatedBy;
}